package app

import (
	"github.com/gorilla/websocket"
	"go.uber.org/fx"
	"net/http"
)

func newUpgrader() fx.Option {
	return fx.Module("Upgrader", fx.Provide(func() *websocket.Upgrader {
		return &websocket.Upgrader{
			CheckOrigin: func(r *http.Request) bool {
				return true
			},
		}
	}))
}
